# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1135 -> 1.1136 # mm/memory.c 1.124 -> 1.125 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/06/12 davidm@tiger.hpl.hp.com 1.1079.1.80 # patch.c: # ia64: don't forget to establish coherence after vtop patching # -------------------------------------------- # 03/06/12 davidm@tiger.hpl.hp.com 1.1079.1.81 # ia64: Minor cleanups: export more symbols, remove uncessary stop bits. # -------------------------------------------- # 03/06/12 davidm@tiger.hpl.hp.com 1.1136 # Allow read accesses to the entire FIXMAP range. This lets gdb see the # instructions in the gate page (there is no security issue, because the # gate page only contains instructions or non-security-sensitive data such # as the ELF headers, etc.). # -------------------------------------------- # diff -Nru a/mm/memory.c b/mm/memory.c --- a/mm/memory.c Fri Jun 13 00:37:45 2003 +++ b/mm/memory.c Fri Jun 13 00:37:45 2003 @@ -714,8 +714,7 @@ if (!pmd) return i ? : -EFAULT; pte = pte_offset_kernel(pmd, pg); - if (!pte || !pte_present(*pte) || !pte_user(*pte) || - !(write ? pte_write(*pte) : pte_read(*pte))) + if (!pte || !pte_present(*pte) || write) return i ? : -EFAULT; if (pages) { pages[i] = pte_page(*pte);